package com.tuanzi.loan.business.entity.family;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

import com.tuanzi.loan.core.entity.AuditEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Ray 2017/10/14
 */
@Data
@Entity
@Table(name = "LOAN_PRODUCT_INFO_TAG")
@EqualsAndHashCode(callSuper = true)
public class ProductInfoTag extends AuditEntity {

	private static final long serialVersionUID = -8711006478109549549L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	protected Long id;

	@NotNull
	@Column(name = "PRODUCT_INFO_ID")
	private Long productInfoId;

	@NotNull
	@Enumerated
	@Column(name = "TAG_TYPE")
	private ProductInfoTagType tagType;

	@NotNull
	@Column(name = "TAG_VALUE")
	private String tagValue;

}
